{% extends "base.html" %}
{# Copyright The IETF Trust 2016, All Rights Reserved #}
{% load origin django_bootstrap5 static %}
{% block title %}Reject review assignment for {{ review_req.doc.name }}{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Reject review assignment
        <br>
        <small class="text-body-secondary">{{ review_req.doc.name }}</small>
    </h1>
    {% include "doc/review/request_info.html" %}
    {% if allow_reject_request %}
        <p class="alert alert-danger my-3">
            Do you want to reject this assignment?
        </p>
        <form method="post">
            {% csrf_token %}
            {% bootstrap_form form %}
            <a class="btn btn-secondary float-end"
               href="{% url "ietf.doc.views_review.review_request" name=doc.name request_id=review_req.pk %}">
                Back
            </a>
            <button type="submit" class="btn btn-warning" name="action" value="reject">Reject assignment</button>
        </form>
    {% else %}
        <p class="alert alert-info my-3">
            This review assignment can not be rejected, as the deadline of the review request has already passed.
        </p>
    {% endif %}
{% endblock %}